// src/mock/index.bundled_0rd2rsv060ep.mjs
function creatUserList() {
  return [
    {
      userId: 1,
      avatar: "https://img2.baidu.com/it/u=1579991524,66947472&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1694624400&t=caf7457a05e4b7614333f5e31fc0c6eb",
      username: "admin",
      password: "123456",
      desc: "\u5E73\u53F0\u7BA1\u7406\u5458",
      token: "admin token",
      routes: ["home"]
    },
    {
      userId: 2,
      avatar: "https://img2.baidu.com/it/u=170237391,555920326&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1694624400&t=ed610056c4157da31b84ea610797d943",
      username: "system",
      password: "000000",
      desc: "\u7CFB\u7EDF\u7BA1\u7406\u5458",
      token: "system token",
      routes: ["home"]
    }
  ];
}
var mock_default = [
  {
    url: "/api/info",
    method: "get",
    response(opt) {
      const { username } = opt.body;
      const checkUser = creatUserList().find((item) => {
        return item.username == username;
      });
      console.log(opt + "11111");
      return { code: 200, data: opt.body };
    }
  },
  {
    url: "/api/login",
    method: "post",
    setTimeout: 200,
    response(opt) {
      const { username, password } = opt.body;
      const checkUser = creatUserList().find((item) => {
        return item.username == username && item.password == password;
      });
      if (!checkUser) {
        return { code: 201, data: { message: "\u8D26\u53F7\u6216\u8005\u5BC6\u7801\u4E0D\u6B63\u786E" } };
      }
      return { code: 200, data: checkUser };
    }
  }
];
export {
  mock_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsic3JjL21vY2svc3JjL21vY2svaW5kZXgudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9faW5qZWN0ZWRfZmlsZW5hbWVfXyA9IFwiL1VzZXJzL2xpeXVoYW4vRGVza3RvcC9INS92dWUtc2hvcC9zcmMvbW9jay9pbmRleC50c1wiO2NvbnN0IF9faW5qZWN0ZWRfZGlybmFtZV9fID0gXCIvVXNlcnMvbGl5dWhhbi9EZXNrdG9wL0g1L3Z1ZS1zaG9w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